﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：FundsOperatingDetailsReportInfo
// 文件功能描述：增减款明细报表业务逻辑层
//
// 
// 创建标识：2012-03-19 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.WaiGaoQiao;
using System.Data;

namespace Model.WaiGaoQiao
{
    public class FundsOperatingDetailsReportInfo
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartTime
        {
            get;
            set;
        }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndTime
        {
            get;
            set;
        }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DEP_ID
        {
            get;
            set;
        }
        /// <summary>
        /// 编号(主键)
        /// </summary>
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DEPTNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 人员编号
        /// </summary>
        public int EMPNO
        {
            get;
            set;
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string PNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 操作后余额
        /// </summary>
        public decimal BALANCE
        {
            get;
            set;
        }
        /// <summary>
        /// 增减金额
        /// </summary>
        public decimal CONMONEY
        {
            get;
            set;
        }
        /// <summary>
        /// 增项减项
        /// </summary>
        public string DEALTYPE
        {
            get;
            set;
        }
        /// <summary>
        /// 增减名称
        /// </summary>
        public string DEPOSITNAME
        {
            get;
            set;
        }

        private DataAccessFundsOperatingDetailsReport dar;
        private int FundsOperatingDetailsReportcount;
        public int _FundsOperatingDetailsReportcount
        {
            get { return FundsOperatingDetailsReportcount; }
        }
        public FundsOperatingDetailsReportInfo(bool isgetcount)
        {
            dar = new DataAccessFundsOperatingDetailsReport();
            if (isgetcount)
            {
                FundsOperatingDetailsReportcount = GetFundsOperatingDetailsReportCount();
            }
        }
        public FundsOperatingDetailsReportInfo()
        { }

        /// <summary>
        /// 获取增减款明细表的数量
        /// </summary>
        /// <returns></returns>
        private int GetFundsOperatingDetailsReportCount()
        {
            return dar.GetFundsOperatingDetailsReportCount();
        }

        /// <summary>
        /// 获取部门列表（用于绑定下拉框）
        /// </summary>
        /// <returns></returns>
        public DataSet GetdeptName()
        {
            return dar.GetdeptName();
        }

        /// <summary>
        /// 获取增减款明细表的数量
        /// </summary>
        /// <returns></returns>
        public int GetFundsOperatingDetailsReportCountWhere(string Condition)
        {
            return dar.GetFundsOperatingDetailsReportCountWhere(Condition);
        }

        /// <summary>
        /// 获取增减款明细表
        /// </summary>
        /// <returns></returns>
        public DataSet BindList(int pagesize, int startindex, string strquery)
        {
            return dar.BindList(pagesize, startindex, strquery);
        }

        public DataSet GetListAll(string strquery)
        {
            return dar.GetListAll(strquery);
        }

        /// <summary>
        /// 获取增减名称列表（用于绑定下拉框）
        /// </summary>
        /// <returns></returns>
        public DataSet GetDepositTypeID()
        {
            return dar.GetDepositTypeID();
        }
    }
}
